<?php
/**
*+-------IMBA导航业务数据的获取操作--------+
*+-------------------------------------------------+
*+-------用于提供内部接口---------------+
*+-------------------------------------------------+
*+-@author susy.liang <liangling@ilongyuan.com.cn>-+
*+-------------------------------------------------+
*/
namespace Api\Event;

class NavEvent extends BaseEvent {

	/**
	*模型对象
	*/
	protected $mod;

	/**
	*成员变量的初始化
	*/
	protected function _initialize(){
		parent::_initialize();
		$this->mod = D('Common/Nav', 'Service');
	}
    
    /**
    *栏目列表数据
    *@param null
    *@return array
    */
    public function lists(){
    	$map = array('status'=>array('egt', 0),);
    	return $this->mod->where($map)->select();
    }

    /**
	*栏目具体明细信息
	*@param int $id 栏目标识
	*@return array 明细数据
	*/
	public function info($id = 0)
	{
		return $this->mod->find($id);
	}


}